<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>订单管理</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/backStyle.css">
<link rel="stylesheet" href="css/style.css"></link>
<link rel="stylesheet" type="text/css" href="css/myButton.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap-modal.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>

<style>
html,body {
	height: 100%;
	width: 100%;
	border: 0;
	background: #fff;
	overflow-y: auto;
}

label {
    width: 8em;
    margin-top: 1em;
}

textarea {
	margin-top: 1em;
}
</style>
</head>
<body>
	<ul class="breadcrumb">
		<li><a href="sys/welcome.jsp">首页</a></li>
		<li class="active"><a href="ordersShow.action">订单管理</a></li>
		<li class="active">订单查看</li>
	</ul>
	<div class="panel panel-default">
		<div class="panel-body">
			<fieldset>
				<legend>订单信息</legend>
				<table>
					<tr>
						<td>下单时间:&nbsp;&nbsp;</td>
						<td>${orders.creDate}</td>
						<td>&nbsp;&nbsp;&nbsp;</td>
						<td>单号:&nbsp;&nbsp;</td>
						<td>${orders.num}</td>
					</tr>
				</table>
				<br>
				<fieldset>
					<legend>商品详情</legend>
					<table>
						<s:iterator value="orders.ordergoodses" id="ordergoodses">
							<th><legend>
									卖家:
									<s:property value="#ordergoodses.goods.user.name" />
								</legend></th>
							<tr>
								<td>商品名</td>
								<td>${ordergoodses.name}</td>
							</tr>
							<tr>
								<td>描述</td>
								<td>${ordergoodses.remark}</td>
							</tr>
							<tr>
								<td>价格</td>
								<td>${ordergoodses.price}元</td>
							</tr>
							<tr>
								<td>数量</td>
								<td>${ordergoodses.amount}</td>
							</tr>
							<tr>
								<td>小计</td>
								<td class="subtotal">${ordergoodses.amount * ordergoodses.price}</td>
							</tr>
						</s:iterator>
					</table>
				</fieldset>
				<br>
				<fieldset>
					<legend>收货信息</legend>
					<form name="ordersInfo" action="payOrders.action" method="post">
						<table>
							<tr height="50px">
								<td width="30%">收件人</td>
								<td><span>${orders.receiver}</span></td>
							</tr>
							<tr height="50px">
								<td>地址</td>
								<td><span>${orders.address}</span></td>
							</tr>
							<tr height="50px">
								<td>手机/电话号码</td>
								<td><span>${orders.phone }</span></td>
							</tr>
						</table>
					</form>
				</fieldset>
				<div class="price_show" style="float:left;width:200px;margin-left: 40%;">
					<span><h3 style="margin-bottom: 0px;">总金额:<s:property value="orders.money"/>元</h3></span>
				</div>
			</fieldset>
		</div>
	</div>
</body>
<script type="text/javascript">
$(document).ready(function() {
	$("#goodsBrand").val(${goods.brand.id });
	$("#goodsIsDelete").val(${goods.isDelete });
	$("#goodsType").val(${goods.type });
})
</script>
</html>
